package com.jmp.chat;

import com.jmp.chat.tenxun.TenxunChatClient;
import one.stand.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChatAutoConfiguration {

    @Autowired
    private RedisUtil redisUtil;

    @Bean
    public ChatClient chatClient() {
        return new TenxunChatClient(redisUtil);
    }
}
